package com.pe1n.yangtaopai.page.home.modle;

import com.pe1n.yangtaopai.bean.BrandBean;
import com.pe1n.yangtaopai.bean.FindBean;
import com.pe1n.yangtaopai.bean.MultiTitleBean;
import com.pe1n.yangtaopai.bean.NewsBean;
import com.pe1n.yangtaopai.bean.OtherBean;
import com.pe1n.yangtaopai.bean.PreferenceBean;
import com.pe1n.yangtaopai.bean.RecommendBean;
import com.pe1n.yangtaopai.bean.SingleTitleBean;
import com.pe1n.yangtaopai.bean.SpecialBean;
import com.pe1n.yangtaopai.bean.TypeBean;
import com.pe1n.yangtaopai.helper.InitRetrofitHelper;
import com.pe1n.yangtaopai.retrofitApi.RetrofitApi;

import retrofit2.http.Url;
import rx.Observable;

/**
 * Created by Administrator on 2016/11/22.
 */

public class ModleImpl implements IModle {

    private RetrofitApi retrofitApi = InitRetrofitHelper.getRetrofitInterfance();

    @Override
    public Observable<MultiTitleBean> getMultiTitleBean(String url) {
        return retrofitApi.getMultiTitleBean(url);
    }

    @Override
    public Observable<SingleTitleBean> getSingleTitleBean(String url) {
        return retrofitApi.getSingleTitleBean(url);
    }

    @Override
    public Observable<BrandBean> getBrandBean(String url) {
        return retrofitApi.getBrandBean(url);
    }

    @Override
    public Observable<FindBean> getFindBean(String url) {
        return retrofitApi.getFindBean(url);
    }

    @Override
    public Observable<NewsBean> getNewsBean(String url) {
        return retrofitApi.getNewsBean(url);
    }

    @Override
    public Observable<OtherBean> getOtherBean(String url) {
        return retrofitApi.getOtherBean(url);
    }

    @Override
    public Observable<PreferenceBean> getPreferenceBean(String url) {
        return retrofitApi.getPreferenceBean(url);
    }

    @Override
    public Observable<TypeBean> getTypeBean(String url) {
        return retrofitApi.getTypeBean(url);
    }

    @Override
    public Observable<RecommendBean> getRecommendBean(String url) {
        return retrofitApi.getRecommendBean(url);
    }

    @Override
    public Observable<SpecialBean> getSpecialBean(String url) {
        return retrofitApi.getSpecialBean(url);
    }

}
